<?php
$rating = (int)$_POST['rating'];
$id = (int)$_POST['id'];

echo "(Rated ".$rating." Stars)";

?>
<script type="text/javascript" language="javascript">
$('#rating_validation').hide();
</script>

<input type="hidden" name="txt_rating" id="txt_rating" value="<?php echo $rating;?>" />